<?php

namespace app\popo\vo;

use app\popo\BaseVO;

/**
 * 用户统计VO
 */
class UserReportVO extends BaseVO
{
    /**
     * 日期，以逗号分隔，例如：2022-10-01,2022-10-02,2022-10-03
     */
    public string $dateList;

    /**
     * 总用户数量，以逗号分隔，例如：200,210,220
     */
    public string $totalUserList;

    /**
     * 新增用户数量，以逗号分隔，例如：20,30,25
     */
    public string $newUserList;

    public function getDateList(): string
    {
        return $this->dateList ?? '';
    }

    public function setDateList(string $dateList): void
    {
        $this->dateList = $dateList;
    }

    public function getTotalUserList(): string
    {
        return $this->totalUserList ?? '';
    }

    public function setTotalUserList(string $totalUserList): void
    {
        $this->totalUserList = $totalUserList;
    }

    public function getNewUserList(): string
    {
        return $this->newUserList ?? '';
    }

    public function setNewUserList(string $newUserList): void
    {
        $this->newUserList = $newUserList;
    }

    public function toArray(): array
    {
        return [
            'dateList' => $this->dateList ?? '',
            'totalUserList' => $this->totalUserList ?? '',
            'newUserList' => $this->newUserList ?? ''
        ];
    }
}